﻿@model IEnumerable<EventPlanner.Models.Contacto>



@{
    ViewBag.Title = "Lista de Contactos";
}
 <div class="subtitle">
<h2>@EventPlanner.Resources.Global.Global.lbl_MisContactos</h2>
</div>
<p></p>
<div class="buttonLink">
<p>
    @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_CrearContacto, "Create")
</p>
</div>



<table>
    <tr>
        <th>
            @EventPlanner.Resources.Global.Global.lbl_Nombre
        </th>
        <th>
            @EventPlanner.Resources.Global.Global.lbl_Correo
        </th>
        <th>
            @EventPlanner.Resources.Contacto.Delete.lbl_Creador
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nombre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Correo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Creador)
        </td>
        <td>
            @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_Editar, "Edit", new { id = item.id }) |
            @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_Detalles, "Details", new { id = item.id }) |
            @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_Borrar, "Delete", new { id = item.id }) |
            @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_Invitar, "Invitar", new { id = item.id })
        </td>
    </tr>
}

</table>
<div class="buttonLink">
<p>
@Html.ActionLink(@EventPlanner.Resources.Contacto.Index.lbl_Exportar, "ExportData", "Contacto")
</p>
</div>
<p>
 @using (Html.BeginForm("UploadFile", "Contacto", FormMethod.Post, new { enctype = "multipart/form-data" }))
 {
        <label for="file">@EventPlanner.Resources.Contacto.Index.lbl_Importar:</label>
        <input type="file" name="file" id="file"/>
        <input type="submit" value=@EventPlanner.Resources.Contacto.Index.lbl_Cargar />
 }
</p>